<%@ page contentType="text/html; charset=utf-8" language="java"
 import="java.sql.*,java.util.* ,com.aptech.restrant.Bean.*,com.aptech.restrant.Controller.*,com.aptech.restrant.Model.*"  errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
	String path = request.getContextPath();

 %>
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>



		<title>管理员登陆</title>




<style>
html,body {
	margin: 0;
	padding: 0;
	position: relative;
	font-family: "微软雅黑", "黑体", "宋体";
	color: #1577ca;
	font-size: 12px;
}

body {
	background: #ffffff url(../images/bg_admin_login_body.jpg) repeat-x;
}

.admin_login_top {
	width: 893px;
	height: 268px;
	margin: 0 auto;
	background-image: url(../images/bg_admin_login_wrapage.jpg);
	position: relative;
}

#btn_submit {
	cursor: pointer;
}

#random {
	cursor: pointer;
}
</style>
	</head>


	<body>
	<script language="javascript">

	function checkUserInfo() {
	 if(document.form1.username.value==""){
	    alert("用户名不能为空");
	    return false;
	 }
	 if(document.form1.password.value==""){
	    alert("密码不能为空");
	    return false;
	 }
	 return true;
	}
	
</script>

		<div class="admin_login_top"></div>

		<div class="admin_login_main">
			<form id="form1" name="form1" action=" <%=path %>/servlet/AdminLogin"  method=post onSubmit="return checkUserInfo();">
				<table width="600" height="95" border="000" align="center"
					cellpadding="0" cellspacing="0">
					<tr>
						<td width="278" rowspan="6">
							<img src="../images/admin_login_logo3.png" width="300" height="150" />
						</td>
						<td width="8" rowspan="6">
							<img src="../images/admin_login_fengge.jpg" width="8"
								height="224" />
						</td>
						<td colspan="3">
							<p>&nbsp;
								
							</p>
						</td>
					</tr>
					<tr>
						<td width="60" align="center">
							用户名
						</td>
						<td colspan="2">
							<input name="username" type="text" id="username"
								style="width: 140px;" size="20" maxlength="20" />
						</td>
					</tr>
					<tr>
						<td align="center">
							密 码
						</td>
						<td colspan="2">
							<input style="width: 140px;" type='password' id='password' name='password' />
						</td>
					</tr>
					<tr>
						<td>&nbsp;
							
						</td>

						<td width="72">
						<input type="submit" name="submit" value="登陆" />
 
									


						</td>
						<td width="182">	<input type="reset" name="clear" value="reset" />
					
						
							</a>
						</td>
					</tr>

				</table>




			</form>
		</div>

	</body>
</html>
